<%--
  Created by IntelliJ IDEA.
  User: LT
  Date: 2018/5/19
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="loginServlet?method=logout">退出</a>
<hr/>
list.jsp!
<br/>
<shiro:hasRole name="admin">
    有admin的角色
</shiro:hasRole>

<shiro:hasRole name="teach">
    有teach的角色
</shiro:hasRole>

<shiro:hasPermission name="user:create">
    有user:create权限
</shiro:hasPermission>

<shiro:hasPermission name="user:delete">
    有user:delete 权限
</shiro:hasPermission>
</body>
</html>
